import request from '@/utils/request'

// 查询【请填写功能名称】列表00
export function listContract(query) {
  return request({
    url: '/driverassignment/contract/allcontract/',
    method: 'get',
    params: query
  })
}

// 查询指定合同
export function oneContract(query) {
  return request({
    url: '/driverassignment/contract/onecontract/',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细00
export function getContract(id) {
  return request({
    url: '/driverassignment/contract/getcontractbyid/' +id,
    method: 'get',
  })
}

// 新增【请填写功能名称】00
export function addContract(data) {
  return request({
    url: '/driverassignment/contract/addcontract',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】00
export function updateContract(data) {
  return request({
    url: '/driverassignment/contract/updatecontract/',
    method: 'post',
    data: data
  })
}

// 删除【请填写功能名称】00
export function delContract(id) {
  return request({
    url: '/driverassignment/contract/deletecontract/' + id,
    method: 'delete'
  })
}

